package net.swl.linkedvillage;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.ListView;

public class ResultadosProcura extends Activity {
	
	ProgressDialog progress;
	ListView listView;
	String texto_pesquisa;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_resultados_procura);
		getActionBar().setIcon(R.drawable.logo_linkedvillage);
		setTitle("");
		
		Intent intent = getIntent();
		texto_pesquisa = intent.getStringExtra("texto_pesquisa");
		
		
		adicionarALista();
		
		
		
	}
	
	private void adicionarALista(){
		/*
		ArrayList<Servico> servicos = new ArrayList<Servico>();
		
		Servico s = new Servico();
		s.setTipoServico(texto_pesquisa);
		s.setCategoria("minha cat");
		User u
		s.setPrestador("Joao Afonso");
		
		servicos.add(s);
		
		s = new Servico();
		s.setTipoServico(texto_pesquisa);
		s.setCategoria("minha cat");
		//s.setPrestador("Joao Afonso");
		
		servicos.add(s);

		ServicosAdapter saAdapter = new ServicosAdapter(this, R.layout.itemlistrow, servicos);
		listView.setAdapter(saAdapter);
		*/		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.resultados_procura, menu);
		return true;
	}
	
	public void onMapaClick(View v) {
		Intent i = new Intent(this, MapaPesquisa.class);
		startActivity(i);
	}

}
